package validation;

import entity.hard.Student;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import java.util.List;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class VTeacher {

  @Length(min = 4, max = 5)
  private String name;

  private String course;

  private Double salary;

  private boolean married;

  private String email;

  private List<Student> students;

  public VTeacher(String name, String course, Double salary, boolean married) {
    this.name = name;
    this.course = course;
    this.salary = salary;
    this.married = married;
  }

}
